package com.dg.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dg.dao.DAOImpl;
import com.dg.pojo.Dept;

@Service("deptService")
public class DeptService {

	@Resource(name="dao")
	private DAOImpl dao;
	
	public List<Dept> findDept() {
		return (List<Dept>) dao.findForList("DeptMapper.getDeptList", null);
	}
	
}
